<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
     [v-cloak]{
         display: none;
     }
     #qq{
         color: brown
     }
     #ww{
         color: chartreuse
     }
     #ee{
         color: blue
     }
     #rr{
         color: black
     }
</style>
<body>
    <div id="app">
        <!-- <h1 v-cloak>{{mag}}</h1>
        <h2 v-text='mag'></h2>
        <h3 v-html='mag'></h3> -->
        <input type="button" id="qq" value="按钮红" onclick="zhenbang()">
        <input type="button" id="ww" value="按钮绿" v-bind:title="msg">
        <input type="button" id="ee" value="按钮蓝" @click="sayHolle()">
        <input type="button" id="rr" value="按钮黑" v-on:click="sayHolle()">
    </div>
</body>
<script src="lib/vue.js"></script>
<script>
function zhenbang(){
          alert("你的报应就是我")  
        }
    var vm=new Vue({
        
        el:'#app',
        data:{
            msg:'烧包'
        },
        methods: {
            
        
        sayHolle:function(){
            alert("记得双击么么哒")
        }
        }
    })
</script>
</html>